package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hulk.ratel.persistence.entity.SuperEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_notify_record")
public class NotifyRecord extends SuperEntity<NotifyRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

	@TableField("notify_id")
	private Long notifyId;

    @TableField("partner_no")
    private String partnerNo;

    @TableField("ori_trace_id")
    private String oriTraceId;

    @TableField("ori_work_id")
    private String oriWorkId;

    @TableField("txn_code")
    private String txnCode;

    @TableField("notify_url")
    private String notifyUrl;

    @TableField("notify_count")
    private Integer notifyCount;

    @TableField("max_notify_conut")
    private Integer maxNotifyConut;

    /**
     * TIMEOUT-超时 PROCESSING-处理中 INIT-初始 SUCCESS-成功 FAILED-失败
     */
    @TableField("status")
    private String status;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;

    @TableField("ori_id")
    private String oriId;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("rsv1")
    private String rsv1;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
